home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992…tember: A ROM With a View / devSep92 / devSep92.dmg / Tools & Apps / Testing & Debugging / Report Error 1.2 / reportError.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-31  |  736 b   |  32 lines  |  [TEXT/KAHL]

  1. /*================================================================================
  2.     reportError.h
  3.     
  4.     Greg Anderson
  5.     28 June 1991
  6.     greggor@apple.com
  7.         
  8.     These routines are very convenient for debugging; they will convert
  9.     OSErrors from short negative numbers to human-readable strings in
  10.     Pascal format
  11.     
  12. ================================================================================*/
  13. #ifndef __REPORTERROR__
  14. #define __REPORTERROR__
  15.  
  16. #ifndef __TYPES
  17. #include <Types.h>
  18. #endif
  19.  
  20. /*
  21. // Constants:
  22. */
  23. #define kReportErrorID    30303
  24.  
  25. /*
  26. // Prototypes for reportError.c
  27. */
  28. pascal Boolean        FindResultCodeDescription( OSErr theErr, Str255 errorNameStr, Str255 errorDescStr );
  29. pascal void            ReportError( Str255 errorMsg, OSErr theErr );
  30.  
  31. #endif
  32.